﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StockMonitor
{
    /// <summary>
    /// 股票池项、股票池中的元素
    /// </summary>
    /// <remarks>
    /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
    /// 编写时间：<datetime>2012-10-16 5:52 PM</datetime>
    /// </remarks>
    public class StockPoolItem
    {
        public string StockCode { get; set; }
        public string StockName { get; set; }
        public int ExchangeAmount { get; set; }
        /// <summary>
        /// 追加交易数量
        /// </summary>
        public int AppendAmount { get; set; }
        public Enums.PriceType ExchangePriceType { get; set; }

        public int CurrentAmount { get; set; }
        public int EnableAmount { get; set; }

        public int TodayExchangeSummary { get; set; }

        public bool IsBuy { get; set; }

        public DateTime LastTrigger { get; set; }
        public DateTime LastAppendTrigger { get; set; }
    }


    public class LimitedStockPoolItem
    {

        public string StockCode { get; set; }
        public string StockName { get; set; }
        public int ExchangeAmount { get; set; }

        public int CurrentAmount { get; set; }
        public int EnableAmount { get; set; }
        /// <summary>
        /// 限价交易的交易价格
        /// </summary>
        public double ExchangePrice { get; set; }
        public bool IsBuy { get; set; }
        public bool IsEnabled { get; set; }
    }

    /// <summary>
    /// ETF股票池元素
    /// </summary>
    /// <remarks>
    /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
    /// 编写时间：<datetime>2012-11-6 2:35 PM</datetime>
    /// </remarks>
    public class ETFPoolItem
    {
        /// <summary>
        /// Gets or sets the stock code.
        /// </summary>
        /// <value>
        /// The stock code.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public string StockCode { get; set; }

        /// <summary>
        /// Gets or sets the name of the stock.
        /// </summary>
        /// <value>
        /// The name of the stock.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public string StockName { get; set; }

        /// <summary>
        /// Gets or sets the current amount.
        /// </summary>
        /// <value>
        /// The current amount.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public int CurrentAmount { get; set; }

        /// <summary>
        /// Gets or sets the exchange amount.
        /// </summary>
        /// <value>
        /// The exchange amount.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public int ExchangeAmount { get; set; }

        /// <summary>
        /// Gets or sets the last buy.
        /// </summary>
        /// <value>
        /// The last buy.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public DateTime LastBuy { get; set; }

        /// <summary>
        /// Gets or sets the last buy price.
        /// </summary>
        /// <value>
        /// The last buy price.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public double LastBuyPrice { get; set; }

        /// <summary>
        /// Gets or sets the max price.
        /// </summary>
        /// <value>
        /// The max price.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public double MaxPrice { get; set; }

        /// <summary>
        /// Gets or sets the current price.
        /// </summary>
        /// <value>
        /// The current price.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public double CurrentPrice { get; set; }

        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        /// <value>
        /// The status.
        /// </value>
        /// <remarks>
        /// 代码编写：<author>LANCEZHANG-PC\zhangxl</author><br/>
        /// 编写时间：<datetime>2012-11-6 2:34 PM</datetime>
        /// </remarks>
        public string Status { get; set; }
    }
}
